﻿<?xml version="1.0" encoding="utf-8" ?>

<cls:class
	name="SystemInformationTable"
	type="http://metalx.org/System/Management/SystemInformationTable"
	xmlns="http://metalx.org/Program"
	xmlns:cls="http://metalx.org/Class"
	xmlns:var="http://metalx.org/Variable"
	xmlns:clsf="http://metalx.org/i386/Functions/Class"
	xmlns:date="http://metalx.org/i386/Functions/Date"
	xmlns:time="http://metalx.org/i386/Functions/Time"
	xmlns:clk="http://metalx.org/i386/Functions/Clock"
	xmlns:obj="http://metalx.org/i386/Functions/Object"
	xmlns:sys="http://metalx.org/i386/Functions/System"
	xmlns:cat="http://metalx.org/i386/Functions/Catalog"
	xmlns:str="http://metalx.org/i386/Functions/String"
	xmlns:int="http://metalx.org/i386/Functions/Integer"
	xmlns:lst="http://metalx.org/i386/Functions/List"
	xmlns:pcif="http://metalx.org/i386/Functions/Pci"
	xmlns:byte="http://metalx.org/i386/Functions/Byte"
	xmlns:short="http://metalx.org/i386/Functions/Short"
	xmlns:hex="http://metalx.org/i386/Functions/Hexadecimal"
	xmlns:mm="http://metalx.org/i386/Functions/MemoryManager"
	xmlns:bool="http://metalx.org/i386/Functions/Boolean"
	xmlns:cpu="http://metalx.org/Intel/80386/Operators"
	xmlns:op="http://metalx.org/Intel/80386/Operands"
	xmlns:index="http://metalx.org/Intel/80386/Index"
	xmlns:math="http://metalx.org/Intel/80386/Math"
	xmlns:ari="http://metalx.org/Intel/80386/Arithmetic"
	xmlns:shift="http://metalx.org/Intel/80386/Shift"
	xmlns:imm="http://metalx.org/Intel/80386/Immediate">

	<cls:field name="Address" offset="0" type="http://metalx.org/Hexadecimal"/>

	<cls:method name="GetType" type="http://metalx.org/Byte">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetLength" type="http://metalx.org/Byte">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetHandle" type="http://metalx.org/Short">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:Operand16/>
		<cpu:CopyOperandToRegister/>
		<op:AX-SIAddressPlusImmediate8/>
		<byte>2</byte>

		<short:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetManufacturer" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<byte>4</byte>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetProductName" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<byte>5</byte>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetVersion" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<byte>6</byte>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetSerialNumber" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<byte>7</byte>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetStockNumber" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<hex>19</hex>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetFamily" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister/>
		<op:SI-SIAddress/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:AX-AXRegister/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:CX-CXRegister/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>1</byte>

		<cpu:CopyOperandToRegister8/>
		<op:CL-SIAddressPlusImmediate8/>
		<hex>1a</hex>

		<cpu:MathImmediateToOperandFunction8/>
		<math:CompareWithCLRegister/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="findString" type="Relative8"/>

		<cpu:ExclusiveOrRegisterWithOperand/>
		<op:DI-DIRegister/>

		<cpu:ReturnToNearCaller/>

		<label id="findString"/>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<cpu:DecrementCX/>

		<cpu:BranchToRelative8IfZero/>
		<addressOf ref="readString" type="Relative8"/>

		<label id="nextString"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="nextString" type="Relative8"/>

		<cpu:LoopToRelative8/>
		<addressOf ref="nextString" type="Relative8"/>

		<label id="readString"/>

		<cpu:PushSIToStack/>

		<label id="count"/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CompareALToImmediate/>
		<byte>0</byte>

		<cpu:BranchToRelative8IfNotEqual/>
		<addressOf ref="count" type="Relative8"/>

		<cpu:SubtractOperandFromRegister/>
		<op:SI-IndexAddress/>
		<index:SP/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:AddImmediateToAX/>
		<int>4</int>

		<mm:CheckOut/>

		<cpu:PushDIToStack/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-AXRegister/>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-CXRegister/>

		<cpu:CopyOperandToRegister/>
		<op:SI-IndexAddressPlusImmediate8/>
		<index:SP/>
		<byte>4</byte>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:PullSIFromStack/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="ToString" type="http://metalx.org/String">
		<cpu:CopyImmediateToDI/>
		<addressOf ref="type" type="Absolute32"/>

		<str:CreateObject/>

		<cpu:ReturnToNearCaller/>

		<var:string id="type">System Information Table</var:string>
	</cls:method>

	<cls:method name="GetClass" type="http://metalx.org/Class">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-DIRegister/>

		<clsf:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>
</cls:class>